package com.xuecheng.api.cms;

import com.xuecheng.framework.domain.cms.CmsPage;
import com.xuecheng.framework.domain.cms.request.QueryPageResult;
import com.xuecheng.framework.domain.cms.response.CmsPageResult;
import com.xuecheng.framework.model.response.QueryResponseResult;
import com.xuecheng.framework.model.response.ResponseResult;
import io.swagger.annotations.ApiOperation;

/**
 * @Author Andrew Yang
 * @ClassName CmsPageControllerApi
 * @Description 通用controller接口
 * @Package com.xuecheng.api
 * @create 2019-12-25 14:38
 */
public interface CmsPageControllerApi {

    public QueryResponseResult findList(int page, int size, QueryPageResult queryPageResult);

    public CmsPageResult add(CmsPage cmsPage);

    @ApiOperation("通过id查询数据")
    public CmsPageResult findById(String id);

    @ApiOperation("修改页面")
    public CmsPageResult edit(String id, CmsPage cmsPage);

    @ApiOperation("通过ID删除页面")
    public ResponseResult delete(String id);

    @ApiOperation("发布页面")
    public ResponseResult post(String pageId);
}
